package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: HuoXu
 * @Date: 2023/07/19/19:08
 * @Description: 快乐跳跳虎
 */
public interface DishService {

    void addDish(DishDTO dishDTO);


    PageResult queryByPage(DishPageQueryDTO dishPageQueryDTO);

    void deleteDish(List<Long> ids);

    List<Dish> queryByClassificationId(Dish dish);

    void startOrStop(Integer status, Long id);

    DishVO queryById(Long id);

    void editDish(DishDTO dishDTO);

    //以下是客户端查询数据的接口
    /**
     * 条件查询菜品和口味
     * @param dish
     * @return
     */
    List<DishVO> listWithFlavor(Dish dish);


}
